package com.javacodegeeks.enterprise.hibernate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="product")
public class Product implements java.io.Serializable {

	@Id
	@Column(name="Product_id")
	int PI;//Product ID
	
	@Column(name="Model")
	String Model;
	
	@Column(name="Size")
	String Size;
	
	@Column(name="Color")
	String Color;
	
	@Column(name="Number")
	int num;//Total number of that product=amount
	
	public Product(){}
	
	public Product(String Model,String Size,String Color,int num){
		this.Model=Model;
		this.Size=Size;
		this.Color=Color;
		this.num=num;
		
	}

	public int getPI() {
		return PI;
	}

	public void setPI(int pI) {
		PI = pI;
	}

	public String getModel() {
		return Model;
	}

	public void setModel(String model) {
		Model = model;
	}

	public String getSize() {
		return Size;
	}

	public void setSize(String size) {
		Size = size;
	}

	public String getColor() {
		return Color;
	}

	public void setColor(String color) {
		Color = color;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}
	
	
	
}
